Piwik\Plugins\SitesManager\API D

Total Complexity 177
Dependencies 29
Dependents 26
Total lines 1,571
Lines of code 751
Logical lines of code 482
Comment lines 475
Methods 69
Properties 3

Methods 69

Method Rating Maintainability Complexity Lines of code
addSite()
B
36 16 74
updateSite()
B
38 16 67
getTimezoneName()
A
47 10 34
getSitesIdWithAtLeastViewAccess()
A
54 8 22
setSettingValue()
S
55 7 20
getTimezonesList()
S
52 6 25
getImageTrackingCode()
S
52 6 23
getSitesWithAdminAccess()
S
56 5 18
getTimezonesListUTCOffsets()
S
55 4 16
checkAndReturnExcludedIps()
S
58 4 15
checkValidTimezone()
S
62 4 11
renameGroup()
S
54 3 22
getJavascriptTag()
S
54 3 21
addSiteAliasUrls()
S
57 3 17
deleteSite()
S
57 3 16
getPatternMatchSites()
S
62 3 12
getSearchKeywordParametersGlobal()
S
64 3 11
removeTrailingSlash()
S
66 3 8
enrichSite()
S
64 3 9
checkAndReturnType()
S
66 3 9
checkAndReturnCommaSeparatedStringList()
S
63 2 11
getSitesIdFromSiteUrl()
S
63 2 11
getSitesIdFromTimezones()
S
63 2 11
getCurrencyList()
S
62 2 11
getAllSites()
S
63 2 11
getDefaultCurrency()
S
68 2 8
getDefaultTimezone()
S
70 2 7
getSitesFromGroup()
S
64 2 10
getIpsForRange()
S
68 2 7
getSiteFromId()
S
66 2 9
checkName()
S
73 2 5
checkValidCurrency()
S
71 2 5
saveMeasurableSettings()
S
70 2 6
getSitesFromIds()
S
67 2 8
getAllSitesId()
S
68 2 8
getNormalizedUrls()
S
62 1 12
setSiteAliasUrls()
S
63 1 11
getCurrencySymbols()
S
68 1 7
isTimezoneSupportEnabled()
S
77 1 4
isValidIp()
S
79 1 3
getExcludedIpsGlobal()
S
77 1 4
updateSiteCreatedTime()
S
70 1 6
setDefaultTimezone()
S
71 1 6
isValidUrl()
S
80 1 3
setDefaultCurrency()
S
71 1 6
getUniqueSiteTimezones()
S
77 1 4
__construct()
S
74 1 5
setGlobalExcludedQueryParameters()
S
69 1 7
getSitesIdWithWriteAccess()
S
81 1 3
getSitesGroups()
S
71 1 6
getModel()
S
81 1 3
getSiteUrlsFromId()
S
77 1 4
getSitesId()
S
81 1 3
getSitesWithViewAccess()
S
76 1 4
getSitesWithAtLeastViewAccess()
S
75 1 4
getSitesIdWithAdminAccess()
S
77 1 4
getSitesIdWithViewAccess()
S
81 1 3
getSiteSettings()
S
72 1 5
setKeepURLFragmentsGlobal()
S
74 1 5
setAndValidateMeasurableSettings()
S
72 1 5
postUpdateWebsite()
S
72 1 6
setGlobalExcludedIps()
S
69 1 7
setGlobalSearchParameters()
S
69 1 7
getSearchCategoryParametersGlobal()
S
77 1 4
getExcludedQueryParametersGlobal()
S
77 1 4
getExcludedUserAgentsGlobal()
S
77 1 4
setGlobalExcludedUserAgents()
S
71 1 6
getKeepURLFragmentsGlobal()
S
76 1 4
getNumWebsitesToDisplayPerPage()
S
77 1 4